package com.sm.honkon.ui.model

import androidx.lifecycle.viewModelScope
import com.sm.honkon.app.App
import com.sm.honkon.data.bean.HandlerEntity
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import me.hgj.jetpackmvvm.base.viewmodel.BaseViewModel

class SignUseViewModel:BaseViewModel() {
    val dao = App.database.handleDao()

    val data = dao.getHandlers()

    fun delHandlers(user: List<HandlerEntity>){
        viewModelScope.launch(Dispatchers.IO) {
            dao.delete(user)
        }
    }
}